<%@ page import="java.util.HashMap" %>
<%@ page import="com.solution.webconstant.PermissionConstants" %>
<% HashMap permissionMap = ((HashMap)(session.getAttribute("userPermissionsInfo"))); %>
<table width="260" border="0" align="left" cellpadding="0"  cellspacing="0" class="leftPanel">
	<tr>
		<td valign="top" >
        <%if(permissionMap != null){%>
		<table width="200" border="0" align="right" cellpadding="0"  cellspacing="0">                 
		<%if (permissionMap.get(PermissionConstants.ADD_QUESTION) != null ||
		permissionMap.get(PermissionConstants.EDIT_QUESTION) != null ||
		permissionMap.get(PermissionConstants.VIEW_QUESTION) != null){ %>                  
	<tr>
		<td height="40" colspan="4" valign="top"  >&nbsp;</td>
	</tr>
	<%if (permissionMap.get(PermissionConstants.ADD_QUESTION) != null){ %>
	<tr>
	<td alight="right">
	<img src="images/add.gif" hspace="3" border="0" /><a href="/question.do">Add Question</a>
	</td></tr>
	<tr>
		<td height="2" colspan="4" valign="top"  >&nbsp;</td>
	</tr>
	<%} if (permissionMap.get(PermissionConstants.ADD_QUESTION) != null){ %>
	<tr><td>
	<img src="images/add.gif" hspace="3" border="0" /><a href="/uploadQuestionFileScreen.do">Upload Question File</a>
	</td></tr>
	<tr>
		<td height="2" colspan="2" valign="top"  >&nbsp;</td>
	</tr>
	<%} if (permissionMap.get(PermissionConstants.EDIT_QUESTION) != null){ %>
	<tr><td>
	<img src="images/edit_icon.gif" hspace="3" border="0" /><a href="/searchQuestion.do?screen_type=Edit">Edit Question</a>
	</td></tr>
	<tr>
		<td height="2" colspan="2" valign="top"  >&nbsp;</td>
	</tr>
	<% } if (permissionMap.get(PermissionConstants.VIEW_QUESTION) != null){ %>
	<tr><td>
	<img src="images/view_icon.gif" hspace="3" border="0" /><a href="/searchQuestion.do?screen_type=View">View Question</a>
	</td></tr>
	<% } %>	
	</table>
<%} %>
<%}%>
</td>
</tr>
</table>
